import { NgModule, Type } from '@angular/core';
import { SharedModule } from '@shared';
import { SimpleRoutingModule } from './simple-routing.module';
import { SimpleDatasourceComponent } from './datasource/datasource.component';
import { SimpleListComponent } from './list/list.component';
import { SimpleCodegenComponent } from './codegen/codegen.component';
import { SimpleCodegenEditComponent } from './codegen/edit/edit.component';

const COMPONENTS: Type<void>[] = [
  SimpleDatasourceComponent,
  SimpleListComponent,
  SimpleCodegenComponent];
const COMPONENTS_NOROUNT: Type<void>[] = [
  SimpleCodegenEditComponent];

@NgModule({
  imports: [
    SharedModule,
    SimpleRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
})
export class SimpleModule { }
